/*
** assert.h for Kernel in /home/icecrime/kernel/src
** 
** Made by icecrime
** Login   <icecrime@epita.fr>
** 
** Started on  Wed Sep 20 08:22:38 2006 icecrime
** Last update Wed Sep 20 09:12:40 2006 icecrime
*/

#ifndef __ASSERT_H__
# define __ASSERT_H__

#ifdef ASSERT

void	assert_failure(const char *exp,
		       const char *file, int line, char *msg);

# define assert(ex, m)	if (!ex)	\
			assert_failure(#ex, __FILE__, __LINE__, m)

#else

# define assert(exp)

#endif

#endif /* !__ASSERT_H__ */
